import { Game } from './core/Game'
import { GamePageViewer } from './core/viewer/GamePageViewer'

import $ from 'jquery'

const g = new Game(new GamePageViewer())

$('#start').click(function () {
  g.start()
})
$('#pause').click(function () {
  g.pause()
})
$('#left').click(function () {
  g.control_left()
})
$('#right').click(function () {
  g.control_right()
})
$('#down').click(function () {
  g.control_down()
})
$('#rotate').click(function () {
  g.control_rotate()
})
